import React, { memo, useEffect, useState } from "react";
import { GetGoodsList } from "@/utils/goods";
import { useHistory } from "react-router-dom";
import Goods from "../cpns/goods";
import { WaitForDeliveryWrapper } from "./style";
export default memo(function WaitForDelivery() {
  const [list, setlist] = useState([]);
  const history = useHistory();

  useEffect(() => {
    GetGoodsList(history, setlist, 1);
  }, []);

  return (
    <WaitForDeliveryWrapper>
      <Goods goodsList={list}></Goods>
    </WaitForDeliveryWrapper>
  );
});
